import pandas as pd
from pyecharts import option as opts
from pyecharts.charts import Line
from pyecharts.globals import ThemeType
df=pd.read_excel('全国人口年度数据.xlsx',index_col=0)
df=df.sort_index(axis='columns')
line=Line(init_opts=opts.InitOpts(Width='1200px',height='600px',theme=ThemeType.SHINE,page_title="折线图"))
